<div ng-init="init();" class="kmi-layout-content SMT29-content">
    <div class="kmi-header-row">
        <div class="kmi-side-btn left" ng-click="back();">
            <i class="material-icons">&#xE408;</i>
            <div class="kmi-can-click"></div>
        </div>
        <div class="header-title" ng-bind="'SMT29.title' | translate"></div>
        <div class="header-logo"></div>
    </div>
    <div class="kmi-layout-main-content">
        <div class="kmi-layout-page">
            <div class="workSearchPanel">
                <div class="kmi-text-fields">
                    <label class="label" ng-bind="'SMT29.op_no' | translate"></label>
                    <input ng-model="selectWorkStationName" readonly="readonly" ng-click="loadWorkStationList()"></input>
                    <div class="tip search" ng-click="loadWorkStationList()"><img src="image/icons/search.png"></img> </div>
                    <label class="label" ng-bind="'SMT29.plot_no' | translate"></label>
                    <input ng-model="origin_plot_no" readonly="readonly" ng-click="load_origin_plot_no()"></input>
                    <div class="tip search" ng-click="load_origin_plot_no()"><img src="image/icons/search.png"></img> </div>
                </div>
                <div class="kmi-text-fields" style="height: 54px;align-items: flex-start;">
                    <!-- 生产线 -->
                    <label class="label" ng-bind="'SMT29.area_no' | translate" style="line-height:38px;"></label>
                    <div class="condition-content perfect-scrollbar" style="width:90%;">
                        <div class="condition" ng-repeat="item in areaInfoList track by $index">
                            <button class="mdl-button mdl-button--icon" ng-click="areaInfoSelect($event, $index);" ng-class="item.selected ? 'selected' : 'unselected'">
                                <i class="material-icons">done</i>
                            </button>
                            <label ng-bind="item.name" style="height:32px;line-height:32px;"></label>
                        </div>
                    </div>
                </div>
                <div class="kmi-text-fields" style="height: 54px;align-items: flex-start;">
                    <!-- 过站板面 -->
                    <label class="label" ng-bind="'SMT29.pass_side' | translate" style="line-height:38px;"></label>
                    <div class="condition-content perfect-scrollbar" suppress-scroll-x="false" style="width:90%;">
                        <div class="condition" ng-repeat="item in passSideInfoList track by $index">
                            <button class="mdl-button mdl-button--icon" ng-click="passSideInfoSelect($event, $index);" ng-class="item.selected ? 'selected' : 'unselected'">
                                <i class="material-icons">done</i>
                            </button>
                            <label ng-bind="item.name"></label>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="contentPanel">
                <div class="panel">
                    <div class="panel-bottom">
                        <div class="kmi-list column-selector" column-selector-id="" style="border-radius: 0 0 6px 6px;">
                            <div class="kmi-list__header">
                                <!-- 工序 -->
                                <div class="kmi-list__column" style="flex: 1;" ng-bind="'SMT29.list.column1' | translate"></div>
                                <!-- 工序名称 -->
                                <div class="kmi-list__column" style="flex: 1;" ng-bind="'SMT29.list.column2' | translate"></div>
                                <!-- 设备编号 -->
                                <div class="kmi-list__column" style="flex: 1;" ng-bind="'SMT29.list.column3' | translate"></div>
                                <!-- 设备名称 -->
                                <div class="kmi-list__column" style="flex: 1;" ng-bind="'SMT29.list.column4' | translate"></div>
                                <!-- 标准过账秒数 -->
                                <div class="kmi-list__column" style="flex: 1;" ng-bind="'SMT29.list.column5' | translate"></div>
                                <!-- 前工序 -->
                                <div class="kmi-list__column" style="flex: 1;" ng-bind="'SMT29.list.column6' | translate"></div>
                                <!-- 管控时间 -->
                                <div class="kmi-list__column" style="flex: 1;" ng-bind="'SMT29.list.column7' | translate"></div>
                            </div>
                            <div class="kmi-list__row-content">
                                <div class="kmi-list__row SMT" ng-repeat="item in dataList | orderBy:'-index' track by $index">
                                    <!-- 工序 -->
                                    <div class="kmi-list__column column-border" style="flex: 1;" ng-bind="item.process"></div>
                                    <!-- 工序名称 -->
                                    <div class="kmi-list__column column-border column-input" style="flex: 1;">
                                        <input ng-model="item.processName">
                                        <!-- <input ng-init="item.inputQty = 0" readonly="readonly" ng-click="dialog.input_inputQty($event, item);" mdl-calculater="item.inputQty" mdl-calculater-title="{{('A02.mlist.column1'|translate)+item.machine_no}}"> -->
                                    </div>
                                    <!-- 设备编号 -->
                                    <div class="kmi-list__column column-border column-input column1" style="flex: 1;">
                                        <input ng-model="item.equipmentNo" readonly="readonly" ng-click="loadequipmentNo($event, $index, item.equipmentInfoList);"></input>
                                        <div class="tip"><img src="image/icons/search.png"></img> </div>
                                    </div>
                                    <!-- 设备名称 -->
                                    <div class="kmi-list__column column-border" style="flex: 1;" ng-bind="item.equipmentName"></div>
                                    <!-- 标准过账秒数 -->
                                    <div class="kmi-list__column column-border column-input" style="flex: 1;">
                                        <input readonly="readonly" ng-click="trackOutInputQty($event,$index,item.passSeconds);" ng-model="item.passSeconds">
                                        <!-- <input ng-model="item.passSeconds"> -->
                                    </div>
                                    <!-- 前工序 -->
                                    <div class="kmi-list__column column-border" style="flex: 1;" ng-bind="item.forwardProcess"></div>
                                    <!-- 管控时间 -->
                                    <div class="kmi-list__column column-border" style="flex: 1;" ng-bind="item.m_cTime"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="kmi-layout-footer">
            <button class="mdl-button mdl-js-button mdl-button--fab mdl-shadow--custom mdl-button--custom1"
                    ng-click="confirm();" ng-disabled="selectedList.length==0">
                <i class="material-icons">done</i>
            </button>
        </div>
    </div>
</div>
